#include "mainwindow.h"
#include <QtDebug>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    this->setGeometry(0, 0, 800, 480);

    scrollArea = new QScrollArea(this);
    scrollArea->setGeometry(50, 50, 700, 380);

    label = new QLabel();

    /* label显示的lantingxu.png图片分辨率为1076*500 */
    QImage image(":/images/1.jpg");
    if (image.isNull()) {
           qDebug() << "无法加载图片";
           //return -1;
       }
    label->setPixmap(QPixmap::fromImage(image));

    scrollArea->setWidget(label);
}

MainWindow::~MainWindow()
{
}

